import {apiapi} from '@/static/js/http.js';

//首页
export const Index= params=>apiapi('index/index', params);

//搜索历史记录
export const search= params=>apiapi('index/search', params);

//首页列表加载
export const indexGoods= params=>apiapi('index/goods', params);

//关键词搜索
export const searchInput= params=>apiapi('index/searchInput', params);

//关键词商品搜索
export const searchGoods= params=>apiapi('index/searchGoods', params);

//删除搜索历史
export const delHistory= params=>apiapi('index/delHistory', params);

//添加历史记录
export const addHistory= params=>apiapi('index/addHistory', params);

//公告列表
export const noticeList= params=>apiapi('index/noticeList', params);

//公告详情
export const noticedetail= params=>apiapi('index/noticeDetail', params);

//签到
export const signIn= params=>apiapi('signIn/signIn', params);

//签到提交
export const signInDo= params=>apiapi('signIn/signInDo', params);

//购物车列表
export const carthtp= params=>apiapi('index/cart', params);

//购物车删除选中
export const cartDel= params=>apiapi('order/cartDel', params);

//添加购物车
export const cartAdd= params=>apiapi('order/cartAdd', params);

//加减购物车数量
export const cartNumSet= params=>apiapi('order/cartNumSet', params);

//收货地址列表
export const addressList= params=>apiapi('user/address', params);

//删除收货地址
export const addressDel= params=>apiapi('user/addressDel', params);

//收货地址设置默认
export const setDefault= params=>apiapi('user/setDefault', params);

//收货地址添加
export const addressAdd= params=>apiapi('user/addressAdd', params);

//收货地址修改页面数据
export const addressEdit= params=>apiapi('user/addressEdit', params);

//修改收货地址提交
export const addressEditDo= params=>apiapi('user/addressEditDo', params);

//普通单和秒杀单确认订单详情
export const orderSubmit= params=>apiapi('order/orderSubmit', params);

//拼团确认订单详情
export const tourorderSubmit= params=>apiapi('assemble/orderSubmit', params);

//积分确认订单详情
export const integralOrder= params=>apiapi('user/integralOrder', params);

//获取普通秒杀商品运费
export const getPostage= params=>apiapi('order/getPostage', params);

//获取拼团商品运费
export const AgetPostage= params=>apiapi('assemble/getPostage', params);

//领取优惠券
export const userCoupon= params=>apiapi('goods/userCoupon', params);

//收银台
export const cashierTotal= params=>apiapi('order/cashier', params);

//普通与秒杀添加订单
export const addOrder= params=>apiapi('order/addOrder', params);

//拼团添加订单
export const AaddOrder= params=>apiapi('assemble/addOrder', params);

//积分添加订单
export const integralOrderAdd= params=>apiapi('user/integralOrderAdd', params);

//我的优惠券列表
export const couponUser= params=>apiapi('user/coupon', params);

//分类数据
export const classify= params=>apiapi('index/classify', params);

//分类搜索数据显示
export const classifyGoods= params=>apiapi('index/classifyGoods', params);

//支付
export const payDo= params=>apiapi('order/payDo', params);

//分享签名
export const getSign= params=>apiapi('wechat/getSign', params);

//uid登录
export const uidLogin= params=>apiapi('login/uidLogin', params);

//分享拿到url
export const shareUrl= params=>apiapi('index/shareUrl', params);

//邀请好友拼团
export const friendOrder= params=>apiapi('assemble/inviteFriend', params);

//好友参团页面
export const friendOrderOne= params=>apiapi('assemble/friendOrder', params);

//拼团分享链接
export const assembleShare= params=>apiapi('index/assembleShare', params);

//提交购物车
export const cartSubmit= params=>apiapi('order/orderSubmit', params);
//代付
export const behalfPay= params=>apiapi('index/behalfPay', params);
//代付支付拉起接口
export const behalfPayDo= params=>apiapi('index/behalfPayDo', params);
//收款
export const customPay= params=>apiapi('index/customPay', params);
//获取支付成功信息
export const getSuccessData= params=>apiapi('index/getSuccessData', params);
